package com.telecom.cms.service;

import java.util.List;

import com.telecom.cms.dao.CimPageDAO;
import com.telecom.cms.dto.CimPage;

public class CimPageMgr {
	public void save(CimPage campadv){
		(new CimPageDAO()).insert(campadv);
	}
	
	public void  delete(CimPage campadv){
		(new CimPageDAO()).delete(campadv);
	}
	
	public List findall(){
		List result=(new CimPageDAO()).findAll();
		return result;
	}
	public List findall(String clusterType){
		List result=(new CimPageDAO()).findAll(clusterType);
		return result;
	}
	public List findall(String latnid,String clusterType){
		List result=(new CimPageDAO()).findAll(latnid,clusterType);
		return result;
	}
	public CimPage findbyid(String latnid,String pageid){
		CimPage result=(new CimPageDAO()).findById(pageid);
		return result;
	}
}
